﻿create proc [dbo].[danhmucKH_Xoa]
@masokh varchar(255)
as
if not exists(select * from DM_KhachHang  where masokh=@masokh   )
begin
select ErrCode=0
end
else
begin
delete from DM_KhachHang where masokh=@masokh
select ErrCode=1
end